import request from '@/utils/request'

// 登录
export const loginApi = data => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

// 获取用户资料
export const userInfoApi = () => {
  return request({
    url: '/sys/profile',
    method: 'POST'

  })
}

// 获取员工基本信息
export const userInById = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
